package com.cli.springboottemplateengine.engine.analyze;

public class TemplateVariableAnalyzerFactory {

    public enum Engine {
        FREEMARKER, THYMELEAF, GROOVY
    }

    public static TemplateVariableAnalyzer getAnalyzer(Engine engine) {
        switch (engine) {
//            case FREEMARKER: return new FreemarkerVariableAnalyzer();
//            case THYMELEAF: return new ThymeleafVariableAnalyzer();
            case GROOVY: return new GroovyTemplateVariableExtractor();
            default: throw new IllegalArgumentException("不支持的模板引擎：" + engine);
        }
    }
}
